
<?php

$strScreenName = 'ListCustomer';
$strQueryName = 'qrySearchCustomer';
$strFormName = 'frmSearchCustomer';
echo (StartForm($strScreenName, "post", $strQueryName,"","","",$strFormName,"",""));
if($strStyleSheet == TRUE){
	echo "<table class='Normal' border='0' align='left' width='450'>";
}	
echo "
 <tr>
     <td>
         <table  width='450' cellpadding='0' cellspacing='0' border='0' class='Normal' align='center'>
     <tr align='left'>
         <td align='left' colspan='2'>
             <H2>Search Customer</H2>
         </td>
     </tr>

     <tr>
         <td align='right' colspan='2'>
             <input type='image' src='./images".SITE_SUFFIX."/search.gif' alt='search'>
         </td>
     </tr>";
?>
	<tr>
         <td align='right' colspan='1'>
             <b>Order By :&nbsp;</b>
         </td>
         <td align='left' colspan='1'>
             <select name='cboOrderBy'>
				<option value='' selected='selected'>Select</option>
				<option value='1'>Client Number</option>
				<option value='2'>Surname</option>
			</select>
         </td>
     </tr>

<?php

echo "
     <tr>
         <td align='right' colspan='1'>
             <b>ID :&nbsp;</b>
         </td>
         <td align='left' colspan='1'>
             <input type=\"text\" name=\"txtID\" value = '$txtID' size= \"4\" maxlength=\"4\">
         </td>
     </tr>

	<tr>
		<td align=\"right\">
			<b>Valid for (days) :&nbsp;</b>
		</td>
		<td align='left'>";
			CreateDropDown("cboValidFor", "SELECT * FROM tblUserValidity ORDER BY 2", "", $cboValidFor);
		echo
		"</td>
	</tr>

     <tr align='left'>
         <td align='right'>
             <b>Contact Title :&nbsp;</b><br/>
         </td>
         <td align='left'>";
             CreateDropDown("cboTitle", "SELECT * FROM tblTitle ORDER BY 2", "", $cboTitle);
echo "
         </td>
     </tr>

     <tr>
         <td align='right' colspan='1'>
             <b>First Name :&nbsp;</b>
		</td>
         <td align='left'>
             <input type=\"text\" name=\"txtFirstName\" value = '$txtFirstName' size= \"30\" maxlength=\"40\">
         </td>
     </tr>

     <tr>
         <td align='right' colspan='1'>
             <b>Surname :&nbsp;</b>
         </td>
         <td align='left' colspan='1'>
             <input type=\"text\" name=\"txtSurname\" value = '$txtSurname' size= \"30\" maxlength=\"30\">
         </td>
     </tr>

     <tr>
         <td align='right' colspan='1'>
             <b>Address :&nbsp;</b>
		</td>
         <td align='left'>
             <input type=\"text\" name=\"txtAddress1\" value = '$txtAddress1' size= \"30\" maxlength=\"60\">
         </td>
     </tr>

     <tr>
         <td align='right' colspan='1'>
             &nbsp;
		</td>
         <td align='left'>
             <input type=\"text\" name=\"txtAddress2\" value = '$txtAddress2' size= \"30\" maxlength=\"60\">
         </td>
     </tr>

     <tr>
         <td align='right' colspan='1'>
             <b>City :&nbsp;</b>
         </td>
         <td align='left' colspan='1'>
             <input type=\"text\" name=\"txtCity\" value = '$txtCity' size= \"30\" maxlength=\"30\">
         </td>
     </tr>

     <tr>
         <td align='right' colspan='1'>
             <b>Region :&nbsp;</b>
         </td>
         <td align='left' colspan='1'>
             <input type=\"text\" name=\"txtRegion\" value = '$txtRegion' size= \"25\" maxlength=\"25\">
         </td>
     </tr>

     <tr>
         <td align='right' colspan='1'>
             <b>Postal Code :&nbsp;</b>
         </td>
         <td align='left' colspan='1'>
             <input type=\"text\" name=\"txtPostalCode\" value = '$txtPostalCode' size= \"10\" maxlength=\"10\">
         </td>
     </tr>

     <tr>
         <td align='right'>
             <b>Country :&nbsp;</b>
         </td>
         <td align='left'>";
             CreateDropDown("cboCountry", "SELECT * FROM tblCountry ORDER BY 2", "", $cboCountry);
echo "
         </td>
     </tr>

     <tr>
         <td align='right' colspan='1'>
             <b>Phone :&nbsp;</b>
         </td>
         <td align='left' colspan='1'>
             <input type=\"text\" name=\"txtPhone\" value = '$txtPhone' size= \"24\" maxlength=\"24\">
         </td>
     </tr>


     <tr>
         <td align='right' colspan='1'>
             <b>Email :&nbsp;</b>
		</td>
         <td align='left'>
             <input type=\"text\" name=\"txtEmail\" value = '$txtEmail' size= \"30\" maxlength=\"100\">
         </td>
     </tr>




     <tr align='left'>
         <td align='right'>
             <b>Referrer :&nbsp;</b>
         </td>
         <td align='left'>";
             CreateDropDown("cboReferrer", "SELECT * FROM tblReferrer ORDER BY 2", "", $cboReferrer);
echo "
         </td>
     </tr>

     <tr>
         <td align='right' colspan='2'>
             <input type='image' src='./images".SITE_SUFFIX."/search.gif' alt='search'>
         </td>
     </tr>
     </form>
         </table
     </td>
</tr>
";
	if($strStyleSheet == TRUE){
   		echo "</table>";
	}
?>
</form>
